load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "clustertablestest_test",
    timeout = "short",
    srcs = [
        "cluster_tables_test.go",
        "main_test.go",
        "tables_test.go",
    ],
    flaky = True,
    shard_count = 50,
    deps = [
        "//config",
        "//domain",
        "//errno",
        "//executor",
        "//infoschema",
        "//infoschema/internal",
        "//kv",
        "//meta/autoid",
        "//parser",
        "//parser/auth",
        "//parser/model",
        "//parser/mysql",
        "//parser/terror",
        "//planner/core",
        "//server",
        "//session",
        "//session/txninfo",
        "//sessionctx/variable",
        "//store/helper",
        "//store/mockstore",
        "//store/mockstore/mockstorage",
        "//store/mockstore/unistore",
        "//testkit",
        "//testkit/external",
        "//testkit/testsetup",
        "//types",
        "//util",
        "//util/gctuner",
        "//util/memory",
        "//util/pdapi",
        "//util/resourcegrouptag",
        "//util/set",
        "//util/stmtsummary",
        "@com_github_gorilla_mux//:mux",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_pingcap_fn//:fn",
        "@com_github_pingcap_kvproto//pkg/deadlock",
        "@com_github_pingcap_kvproto//pkg/metapb",
        "@com_github_pingcap_tipb//go-tipb",
        "@com_github_stretchr_testify//require",
        "@com_github_tikv_client_go_v2//testutils",
        "@org_golang_google_grpc//:grpc",
        "@org_uber_go_goleak//:goleak",
    ],
)
